You are here: Symbol Reference > Dew Namespace > Dew.Stats Namespace > Dew.Stats.Units Namespace > Classes > StatControlCharts Class > StatControlCharts Methods > StatControlCharts.QCWestgardRules Method
Dew Stats for .NET
ContentsIndexHome
Example

Load process data, then check if any points are out-of-control.

using Dew.Math; using Dew.Math.Units; using Dew.Stats.Units; namespace Dew.Examples { private void Example(Dew.Stats.QCSeries QCSeries1) { Vector data = new Vector(0); Vector outofcontrol = new Vector(0); VectorInt indexes = new VectorInt(0); data.LoadFromFile("process_data.vec"); StatControlCharts.QCWestgardRules(data,outofcontrol,data.Mean(),data.StdDev()); // Now find indexes of out-of-control points indexes.FindIndexes(outofcontrol,">",0); // indexes.IValues now stores the indices of out-of-control points } }
Copyright (c) 1999-2024 by Dew Research. All rights reserved.